package de.jamm.aws;

public class Player {
	protected String name;
	protected int side;
	protected Game game;
	
	public Player(String name, int side, Game game){
		setName(name);
		setSide(side);
		setGame(game);
	}

	protected String getName() {
		return name;
	}

	protected void setName(String name) {
		this.name = name;
	}

	protected int getSide() {
		return side;
	}

	protected void setSide(int side) {
		this.side = side;
	}
	
	protected Game getGame(){
		return this.game;
	}
	protected void setGame(Game game){
		this.game = game;
	}
	
	//-----------------------------------------------
	
	protected void addToken(int position){
		game.addToken(position, this.side);
	}
	
	protected void moveToken(MuehleMove move){
		game.moveToken(move, this.getSide());
	}
	
	protected void removeToken(int position){
		System.out.println("Player.getSide()"+side);
		game.removeToken(position, this.getSide());
	}
}
